PRES_NAME = presentation

all: $(PRES_NAME).pdf

$(PRES_NAME).pdf: $(PRES_NAME).tex
	pdflatex $(@:$(PRES_NAME).pdf=$(PRES_NAME).tex)
	pdflatex $(@:$(PRES_NAME).pdf=$(PRES_NAME).tex)
	rm -f *.aux *.log *.nav *.out *.snm *.toc *.vrb

clean:
	rm -f *.aux *.log *.nav *.pdf *.out *.snm *.toc *.vrb